<template>
  <div class="address-box">
    <div class="address-item">
      <div class="label">收货人：</div>
      <div class="text">{{address.receiveName}}</div>
    </div>
    <div class="address-item">
      <div class="label">联系方式：</div>
      <div class="text">{{address.phone}}</div>
    </div>
    <div class="address-item">
      <div class="label">邮编：</div>
      <div class="text">{{address.zipCode}}</div>
    </div>
    <div class="address-item">
      <div class="label">城市：</div>
      <div class="text">{{address.city}}</div>
    </div>
    <div class="address-item">
      <div class="label">详细地址：</div>
      <div class="text">{{address.address}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AddressBox',
  props: {
    address: {
      type: Object,
      default: function () {
        return {}
      }
    }
  }
}
</script>

<style scoped lang="scss">
.address-box{
  width: 400px;
  min-height: 100px;
  margin-top: 10px;
  margin-right: 20px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-radius: 5px;
  padding: 10px 10px 15px;
  .address-item{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 5px;
    font-size: 14px;
    .label{
      color: #AAAAAA;
      width: 80px;
    }
    .text{
      width: 300px;
    }
  }
}
</style>
